package com.idanchuang.component.logback.tool;

import java.io.Serializable;

/**
 * @author yjy
 * @date 2020/8/26 17:31
 **/
public class LogData implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 日志记录时间 */
    private String logTime;
    /** 日志级别: DEBUG / INFO / WARN / ERROR */
    private String logLevel;
    /** 应用名称 */
    private String appId;
    /** 应用版本 */
    private String appVersion;
    /** 应用分组 */
    private String appGroup;
    /** 应用地址 */
    private String address;
    /** 当前链路id */
    private String traceId;
    /** 当前线程名 */
    private String thread;
    /** 文件 */
    private String file;
    /** 方法 */
    private String method;
    /** 当前url */
    private String url;
    /** 当前请求耗时 */
    private Integer duration;
    /** 日志关键词 */
    private String keyword;
    /** 日志内容 */
    private String content;

    public String getLogTime() {
        return logTime;
    }

    public void setLogTime(String logTime) {
        this.logTime = logTime;
    }

    public String getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(String logLevel) {
        this.logLevel = logLevel;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getAppGroup() {
        return appGroup;
    }

    public void setAppGroup(String appGroup) {
        this.appGroup = appGroup;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public String getThread() {
        return thread;
    }

    public void setThread(String thread) {
        this.thread = thread;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "LogData{" +
                "logTime=" + logTime +
                ", logLevel='" + logLevel + '\'' +
                ", appId='" + appId + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", appGroup='" + appGroup + '\'' +
                ", address='" + address + '\'' +
                ", traceId='" + traceId + '\'' +
                ", thread='" + thread + '\'' +
                ", file='" + file + '\'' +
                ", method='" + method + '\'' +
                ", url='" + url + '\'' +
                ", duration=" + duration +
                ", keyword='" + keyword + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
